#ifndef BALLITEM_H
#define BALLITEM_H

#include <QGraphicsItem>

#include "item/Item.h"
#include "com/QueueMananger.h"
#include "core/Utils.h"

namespace br {
namespace org {
namespace item {

using namespace br::org::core;

class Aircraft : public Item
{    
public:
    Aircraft();
    virtual ~Aircraft();
    /* QGraphicsItem override methods. */
    virtual QRectF boundingRect() const;
    virtual void advance( int phase );
    virtual void paint( QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0 );
    virtual const QByteArray serialize();
    virtual void deserialize( const QByteArray& message );
protected:    
    virtual void keyPressEvent( QKeyEvent* event ) ;
    virtual void keyReleaseEvent( QKeyEvent* event ) ;
private:   
    Utils* utils;
    double horizontalMove;
    double verticalMove;
    QImage* image;      
    QueueMananger* queueMananger;
};

}
}
}
#endif // BALLITEM_H
